package com.gs.process.demo.config;

import com.gs.process.core.interceptor.ProcessConfigurer;
import com.gs.process.core.interceptor.ProcessContextManager;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

/**
 * @author Shuai Guo
 * @version 1.0
 * @description
 * @date 2021/7/13
 */
@Configuration
public class MyProcessConfig implements ProcessConfigurer {

    @Resource
    private ProcessUserInterceptor processUserInterceptor;

    @Override
    public void configurer(ProcessContextManager processContextManager) {
        //增加用户校验拦截器
        processContextManager.addInterceptor(processUserInterceptor);
    }
}
